﻿using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;

namespace LaunchPad.Core.Controls
{
    public partial class FieldControl : UserControl
    {
        public FieldControl()
        {
            InitializeComponent();
        }

        private void AddButtonClick(object sender, RoutedEventArgs e)
        {
            ((Collection<Node>) effectsDataGrid.ItemsSource).Add(new Node());
        }

        private void DiscoverButtonClick(object sender, RoutedEventArgs e)
        {
            XBeeIO.Instance.BeginNodeDiscovery();
        }
    }
}